from sqlalchemy import Column, Integer, String
from database.db_init import Base


class Sensor(Base):
    __tablename__ = "Sensor"
    ID = Column(Integer, primary_key=True, index=True)
    SensorNumber = Column(String, unique=True)
    SensorType = Column(String, unique=False)
    NetworkAddress = Column(String, unique=False)
    IndicatorNamesJSON = Column(String, unique=False)
    OnlineStatus = Column(String, unique=False)
